# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=deadbeef-soxr
pkgver=20180801 # No version information. Use last commit date.
pkgrel=0
pkgdesc="Sox resampler plugin for deadbeef audio player."
url="https://github.com/silentlexx/deadbeef_soxr"
# blocked by deadbeef -> libdispatch-dev
arch="all !s390x !armhf !riscv64"
license="GPL-2.0-or-later"
depends="deadbeef"
makedepends="
	deadbeef-dev
	soxr-dev
	"
_commit="103341b7388d38110181494bb9763daa9dafa63e"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/silentlexx/deadbeef_soxr/archive/$_commit.tar.gz
	remove-native-build-opt.patch
	"
builddir="$srcdir/deadbeef_soxr-$_commit"
options="!check" # No test suite

build() {
	make
}

package() {
	mkdir -p $pkgdir/usr/lib/deadbeef/
	mv $builddir/ddb_soxr_dsp.so $pkgdir/usr/lib/deadbeef/
}

sha512sums="613b239596570d2748288d2682b9e509a01c27a5ad761374b30bbbeb0d2e9029e5b9bf4cb99a5902a214e93772327925b2778f0e98c3c92ce38ea2a11ae475de  deadbeef-soxr-20180801.tar.gz
e735fcdd079aa9d87421c493d954a1869653c665de9745c98c988af7339491cb93462ed35f34a04ab3a55e19e69c444ed78a726a753b6ea6fdba15b8d3029209  remove-native-build-opt.patch"
